home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / BARNET / ARMLINUX / MAIL / 9711 / text0117.txt < prev    next >
Encoding:
Text File  |  1997-11-30  |  1.8 KB  |  49 lines

  1. Thomas Marx writes:
  2. > But every program (the tutorials and the exapmles) crash or say that virtual
  3. > memory is exhausted although I have lots free.
  4.  
  5. When you say it crashes, do you have any kernel messages relating to the crash?
  6. An 'Oops' maybe?
  7.  
  8. > Beside of this I tried to compile python. It compiled the most part but
  9. > when run a test it said that there was a mistake within the sqrt routine.
  10. > What is the source of this error?
  11.  
  12. I seem to remember that this is what happened when I attempted it.  If anyone
  13. can track down the error...  Let me guess... sqtd doesn't work the way that
  14. I thought it ought to???
  15.  
  16.                 .file   "sqrt.S"
  17. #include <linux/errno.h>
  18.                 .text
  19.  
  20.                 .global _sqrt
  21. _sqrt:          stmfd   sp!, {r0, r1}
  22.                 ldfd    f0, [sp], #8
  23.                 cmfe    f0, #0
  24.                 bmi     domainerr
  25.                 sqtd    f0, f0
  26.                 movs    pc, lr
  27.  
  28. domainerr:      mov     r0, #EDOM
  29.                 ldr     r1, =_errno
  30.                 str     r0, [r1]
  31.                 ldr     r0, =___huge_val
  32.                 ldfd    f0, [r0]
  33.                 mnfd    f0, f0
  34.                 movs    pc, lr
  35.  
  36. > Another mistake was when compiling an assembler file the routine 
  37. > ASM_OUTPUT_ADDDIR_DIFF_ELT was not known. What is this?
  38.  
  39. Don't give the compiler -fPIC or -fpic options!!!
  40.    _____
  41.   |_____| ------------------------------------------------- ---+---+-
  42.   |   |        Russell King        rmk@ecs.soton.ac.uk        --- ---
  43.   | | | |    http://www.arm.uk.linux.org/~rmk/home.html      /  /  |
  44.   | +-+-+                                                     --- -+-
  45.   /   |               THE developer of ARM Linux              |+| /|\
  46.  /  | | |                                                     ---  |
  47.     +-+-+ -------------------------------------------------  /\\\  |
  48.  
  49.